DataCollection | ComponentOne
C1.DataCollection Assembly / C1.DataCollection Namespace / IDataCollectionEx Class / MoveAsync Method / MoveAsync<T>(IDataCollection<T>,Int32,Int32) Method
The data collection.
From index.
To index.

In This Topic
    MoveAsync<T>(IDataCollection<T>,Int32,Int32) Method
    In This Topic
    Moves an item from the specified position to the new one.
    Syntax
    'Declaration
     
    Public Overloads Shared Function MoveAsync(Of T As Class)( _
       ByVal dataCollection As IDataCollection(Of T), _
       ByVal fromIndex As Integer, _
       ByVal toIndex As Integer _
    ) As Task
    public static Task MoveAsync<T>( 
       IDataCollection<T> dataCollection,
       int fromIndex,
       int toIndex
    )
    where T: class

    Parameters

    dataCollection
    The data collection.
    fromIndex
    From index.
    toIndex
    To index.

    Type Parameters

    T
    See Also